<?php if (!empty($console_messages)): ?>
<?php foreach ($console_messages as $console_message): ?>
    <?php
    switch (Util::decide_message_type($console_message)) {
        case Util::RESERVATION_NEW_TODAY:
            include_partial('globals/console_row_new_today', array('console_message' => $console_message,
                                                                   'type' => Util::TYPE_STRING_NEW_TODAY));
            break;
        case Util::RESERVATION_CANCELATION_TODAY:
            include_partial('globals/console_row_deleted_today', array('console_message' => $console_message,
                                                                       'type' => Util::TYPE_STRING_CANCELLED_TODAY));
            break;
        case Util::RESERVATION_NEW_GROUP_TODAY:
            include_partial('globals/console_row_new_group_today', array('console_message' => $console_message,
                                                                         'type' => Util::TYPE_STRING_NEW_GROUP_TODAY));
            break;
        case Util::RESERVATION_CANCELATION_GROUP_TODAY:
            include_partial('globals/console_row_deleted_group', array('console_message' => $console_message,
                                                                       'type' => Util::TYPE_STRING_CANCELLED_GROUP_TODAY));
            break;
        case Util::RESERVATION_NEW_WITH_REMAKRS:
            include_partial('globals/console_row_new_with_remarks', array('console_message' => $console_message,
                                                                          'type' => Util::TYPE_STRING_NEW_WITH_REMARKS));
            break;
    }
    ?>
<?php endforeach ?>
<?php endif ?>
<tr id="last_console_row"></tr>